package cn.zn.modules.member.service.impl;

import cn.zn.framework.common.utils.PageInUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.framework.common.utils.PageUtils;

import cn.zn.modules.member.dao.MemberLevelInfoDao;
import cn.zn.modules.member.entity.MemberLevelInfoEntity;
import cn.zn.modules.member.service.MemberLevelInfoService;


@Service("memberLevelInfoService")
public class MemberLevelInfoServiceImpl extends ServiceImpl<MemberLevelInfoDao, MemberLevelInfoEntity> implements MemberLevelInfoService {

    @Override
    public PageUtils queryPage(PageInUtils<MemberLevelInfoEntity> pageIn) {
        MemberLevelInfoEntity entity = pageIn.getEntity();
        QueryWrapper<MemberLevelInfoEntity> memberLevelInfoQueryWrapper = Wrappers.query();
        if(entity != null){
            // 设置查询条件
        }
        IPage<MemberLevelInfoEntity> pageResult = this.page(pageIn.getPageObj(), memberLevelInfoQueryWrapper);
        return new PageUtils(pageResult);
    }

}